<?php
/**
 * Created by PhpStorm.
 * User: ivi
 * Date: 2019/2/19
 * Time: 20:48
 */

namespace App\Http\Requests\Admin;


use App\Http\Requests\BaseFormRequest;

class FindPassRequest extends BaseFormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'email' => ['required', 'email'],
            'captcha' => ['required', 'captcha']
        ];
    }


    public function messages()
    {
        return [
            'email.required' => '请输入用户名',
            'email.email' => '邮箱格式错误！',
            'captcha.required' => '请输入验证码',
            'captcha.captcha' => '验证码错误'
        ];
    }
}
